import { ElMessage } from "element-plus";

const message = {
  info(msg) {
    ElMessage({ type: "info", message: msg, dangerouslyUseHTMLString: true });
  },
  success(msg) {
    ElMessage({
      type: "success",
      message: msg,
      dangerouslyUseHTMLString: true,
    });
  },
  warning(msg) {
    ElMessage({
      type: "warning",
      message: msg,
      dangerouslyUseHTMLString: true,
    });
  },
  error(msg) {
    ElMessage({
      type: "error",
      message: msg,
      dangerouslyUseHTMLString: true,
      duration: 10000,
      showClose: true,
    });
  },
};
export { message };
export default message;
